#include <iostream>
#include <string>

using namespace std;

class A
{
public:
	void func()
	{
		cout << "func()" << endl;
	}
protected:
	int age = 111;
};

class B :public A
{
public:
	void func(int x)
	{
		cout << "func(int)->" << x << endl;
	}
	void show()
	{
		//cout << A::age << endl;
		cout << age << endl;
	}
protected:
	int age = 999;
};

int main()
{
	B b;
	//b.show();
	//b.func(1);
	b.A::func();
	
	return 0;
}

//class Person {
//public:
//	void print() {
//		cout << _name << endl;
//		cout << _age << endl;
//	}
//
//protected:
//	string _name = "peter";
//	size_t _age = 18;
//};
//
//class Stu :public Person {
//protected:
//	size_t _stuid;
//};
//
//int main()
//{
//
//	Stu s;
//	s.print();
//	return 0;
//}